export default {
  namespaced: true,
  state: {
    address: {},
    token: '',
    userInfo: "",
    backRoute: {
      url: '', // 跳转地址
      type: '' // 跳转类型  switchTab   navigateTo
    }
  },
  mutations: {
    setAddress(state, value) {
      state.address = value
    },
    setToken(state, value) {
      state.token = value
    },
    setUserInfo(state, value) {
      state.userInfo = value
    },
    logout(state) {
      state.token = ''
      state.userInfo = ""
    },
    setBackRoute(state, value) {
      state.backRoute = value
    }
  },
  actions: {},
  getters: {}
}